package com.akkainaction.remote.router;

import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.UntypedActor;
import com.typesafe.config.ConfigFactory;

public class UserServerActor2 extends UntypedActor {

    @Override
    public void onReceive(Object msg) throws Exception {
        if(msg instanceof String){
            System.out.println(msg);
        }
    }

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("remote-server2.conf"));
        system.actorOf(Props.create(UserServerActor2.class),"userServerActor2");
    }
}
